import {ref} from 'vue'
import axios from 'axios'


export default  ()=>{
    let data = ref([
        "https://images.dog.ceo//breeds//pembroke//n02113023_13896.jpg"
    ])
    
    const changeDog = async () => {
        try {
            let result = await axios.get("https://dog.ceo/api/breed/pembroke/images/random")
            data.value.push(result.data.message)
        } catch (error) {
            alert(error)
        }
    }
    return {data,changeDog}
}